from flask import Flask
from config import Config
from app.voc import importVOCRoute
from extensions import db



def create_app():
    app = Flask(__name__)
    app.config.from_object(Config)
    db.init_app(app)
    
    # TP蓝图
    importVOCRoute(app)

    return app
